<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	 <div class="container"  id="content">
		 <section class="content-header">
			 <h1>
				 <i class="fa fa-file"></i>
				 <strong>计划任务管理</strong>
			 </h1>
			 <ol class="breadcrumb">
				 <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				 <li>计划任务管理</li>
				 <li class="active">计划任务管理</li>
			 </ol>
		 </section>
		 <!-- Main content -->
		 <section class="content">
			 <div class="box box-info">
			 	 <div class="box-header with-border">
                     <i class="fa fa-th-list"></i>
                     <h4 class="box-title">计划任务</h4>
                 </div>
                 <div class="box-body">
                    <div class="form-inline">
                    <div class="input-group">
						<input type="text" class="form-control" id="keyword"  placeholder="Search..." />
						<span class="input-group-btn">
						<button  type="button" class="btn btn-info searchBtn">查询</button>
						<button  type="button" name="reset" id="reset-btn" class="btn btn-info resetBtn">撤消</button>
						</span>
					</div>
					<div class="btn-group pull-right">
						<input class="form-control" type="hidden" id="userId" name="userId" th:value="${user.id}" />
						<button type="button" class="btn btn-info  schedulingBtn">生成计划任务</button>
					</div>
				 </div>
                 </div>
				<div class="box box-body" style="width:100%; overflow-x:scroll;">
					<table id="dataTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="5000px" align="center">
						<thead>
							<tr>
								<th width="3%">序号</th>
								<th width="2%"><input type="checkbox" id="checkAllContract"/></th>
								<th width="4%">合同号</th>
								<th width="3%">合同类型</th>
								<th width="3%">状态</th>
								<th width="3%">排产</th>
								<!-- <th width="3%">总价</th> -->
								<th width="4%">排产日期</th>
								<th width="4%">签订日期</th>
								<th width="4%">交货日期</th>
								<th width="4%">发货日期</th>
								<th width="4%">调试日期</th>
								<th width="4%">验收日期</th>
								<!-- <th width="3%">货物到站</th>
								<th width="3%">运费支付</th> -->
								<th width="5%">项目名称</th>
								<th width="4%">订货单位</th>
								<th width="5%">订货地址</th>
								<th width="3%">订货代表</th>
								<th width="4%">订货电话</th>
								<th width="3%">订货邮编</th>
								<th width="4%">订货片区</th>
								<th width="4%">邮寄单位</th>
								<th width="5%">邮寄地址</th>
								<th width="3%">邮寄代表</th>
								<th width="4%">邮寄电话</th>
								<th width="3%">邮寄邮编</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
				<div>
					<h4>
						<strong>计划任务列表</strong>
					</h4>
				</div>
				<div class="box-body">
                    <div class="form-inline">
                    <div class="input-group">
						<input type="text" class="form-control" id="keyword1"  placeholder="Search..." />
						<span class="input-group-btn">
						<select class="form-control" id="state" name="state" >
							<option value="">全部</option>
							<option value="新增" selected="selected" >未下达</option>
							<option value="下达">下达</option>
							<option value="已完成">已完成</option>
						</select>
						<button  type="button" class="btn btn-info searchBtn1">查询</button>
						<button  type="button" name="reset" id="reset-btn" class="btn btn-info resetBtn1">撤消</button>
						</span>
					</div>
					<div class="btn-group pull-right">
						<!-- <button type="button" class="btn btn-info" id="updateschedulingBtn">提取最新合同信息</button> -->
						<button type="button" class="btn btn-info" id="editSchedulingBtn">编辑</button>
						<button type="button" class="btn btn-info" id="delSchedulingBtn">删除</button>
						<button type="button" class="btn btn-info" id="IssuedSchedulingBtn">下达</button>
						<button type="button" class="btn btn-info" id="takeSchedulingBtn">收回</button>
						<button type="button" class="btn btn-info" id="printSchedulingBtn">打印</button>
						<button type="button" class="btn btn-info" id="seeSchedulingBtn">查看详情</button>
					</div>
				 </div>
                 </div>
                 <div class="box box-body" style="width:100%; overflow-x:scroll;">
				<table id="SchedulingTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="2000px" align="center">
					<thead>
						<tr>
							<th width="3%">序号</th>
							<th width="2%"><input type="checkbox" id="checkAllContract1"/></th>
							<th width="4%">计划任务编号</th>
							<th width="4%">供方合同号</th>
							<th width="3%">状态</th>
							<th width="4%">下达日期</th>
							<th width="4%">类型</th>
							<th width="4%">签订日期</th>
							<th width="4%">交货日期</th>
							<th width="4%">订货单位</th>
							<th width="4%">备注</th>
							<th width="4%">创建人</th>
							<th width="4%">创建部门</th>
							<th width="4%">创建日期</th>
							<th width="4%">打印次数</th>
							<th width="4%">最后打印日期</th>
							<th width="4%">接收人员</th>
							<th width="4%">接收时间</th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
				</div>
			</div>
	  </section>
	  <script th:src="@{/scheduling/schedulingindex.js}"></script>
	 </div> 
</body>
</html>